package org.jypj.dev.model;

import java.util.ArrayList;
import java.util.List;

import com.google.gson.Gson;

/**
 * 菜单表
 *
 * @author chenyu
 */
public class Menu implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    private String id; // 主键
    private String name; // 菜单名称
    private String url; // 菜单地址
    private String logoUrl; // 菜单logo地址
    private String parentId; // 上级菜单
    private String sortOrder; // 菜单排序
    private String type; // 菜单描述0表示目录1表示功能

    private String openType = "0";//是否打开
    private List<Menu> childMenus = new ArrayList<>();// 子菜单
    private String parentName;//上级菜单的名称
    private String roleType;//角色类型
    private String isCheck = "false";//是否被选中

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getLogoUrl() {
        return this.logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getParentId() {
        return this.parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<Menu> getChildMenus() {
        return childMenus;
    }

    public void setChildMenus(List<Menu> childMenus) {
        this.childMenus = childMenus;
    }

    public String getOpenType() {
        return openType;
    }

    public void setOpenType(String openType) {
        this.openType = openType;
    }

    public String getIsCheck() {
        return isCheck;
    }

    public void setIsCheck(String isCheck) {
        this.isCheck = isCheck;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    @Override
    public String toString() {
        Gson gson = new Gson();
        return gson.toJson(this);
    }

}